package com.service.scheduling.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.service.dao.mapper.ProductHrComboMapper;
import com.service.dao.model.ProductHrCombo;
import com.service.scheduling.service.ProductHrComboService;
import org.springframework.stereotype.Service;

import java.util.Map;
import java.util.stream.Collectors;


@Service("hashRateComboService")
public class ProductHrComboServiceImpl extends ServiceImpl<ProductHrComboMapper, ProductHrCombo> implements ProductHrComboService {
    @Override
    public Map<Integer, ProductHrCombo> listHrCombo2Map() {
        return list().parallelStream().collect(Collectors.toMap(ProductHrCombo::getId, item->item));
    }
}
